import axios from '@/utils/axios'
export const getVipPage = data => {
  return axios.request({
    url: 'front/user/vipCenter',
    method: 'get'
  })
}

export const getVipGood = data => {
  return axios.request({
    url: 'front/shop/getVipCommodity',
    params: data,
    method: 'get'
  })
}

export const getIncomeList = data => {
  return axios.request({
    url: 'front/user/bonusDetail',
    params: data,
    method: 'get'
  })
}

export const getRecordedList = data => {
  return axios.request({
    url: 'front/user/bonusClassify',
    params: data,
    method: 'get'
  })
}

export const getBalanceDetail = data => {
  return axios.request({
    url: 'front/user/balanceDetail',
    params: data,
    method: 'get'
  })
}

export const drawMoney = data => {
  return axios.request({
    url: 'front/user/drawMoney',
    data,
    method: 'post'
  })
}

export const getTeamInfo = data => {
  return axios.request({
    url: 'front/user/team',
    params: data,
    method: 'get'
  })
}

export const getVipDetail = data => {
  return axios.request({
    url: 'front/user/vipInfo',
    params: data,
    method: 'get'
  })
}

export const getBusinessSchool = data => {
  return axios.request({
    url: 'front/user/business',
    params: data,
    method: 'get'
  })
}

export const vipApply = data => {
  return axios.request({
    url: 'front/user/qoe',
    data,
    method: 'post'
  })
}